﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelpersDotNet.Configuration;
using System.Configuration;

namespace HelpersDotNet.HttpModules
{
    public class HttpCompressionElementCollection : ConfigurationElementCollectionBase<HttpCompressionElement>
    {
        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((HttpCompressionElement)element).ContentType;
        }

        [ConfigurationProperty(HttpCompressionMappingConstants.DefaultCompressionTypeAttributeName, IsRequired = false)]
        public string DefaultCompressionType
        {
            get { return base["defaultCompressionType"].ToString(); }
        }
    }
}
